Integrand size = 11, antiderivative size = 81 \[ \int \frac {x^6}{1+x^6} \, dx=x+\frac {1}{6} \arctan \left (\sqrt {3}-2 x\right )-\frac {\arctan (x)}{3}-\frac {1}{6} \arctan \left (\sqrt {3}+2 x\right )+\frac {\log \left (1-\sqrt {3} x+x^2\right )}{4 \sqrt {3}}-\frac {\log \left (1+\sqrt {3} x+x^2\right )}{4 \sqrt {3}} \]
x-1/3*arctan(x)-1/6*arctan(2*x-3^(1/2))-1/6*arctan(2*x+3^(1/2))+1/12*ln(1+ x^2-x*3^(1/2))*3^(1/2)-1/12*ln(1+x^2+x*3^(1/2))*3^(1/2)
Time = 0.02 (sec) , antiderivative size = 76, normalized size of antiderivative = 0.94 \[ \int \frac {x^6}{1+x^6} \, dx=\frac {1}{12} \left (12 x+2 \arctan \left (\sqrt {3}-2 x\right )-4 \arctan (x)-2 \arctan \left (\sqrt {3}+2 x\right )+\sqrt {3} \log \left (1-\sqrt {3} x+x^2\right )-\sqrt {3} \log \left (1+\sqrt {3} x+x^2\right )\right ) \]
(12*x + 2*ArcTan[Sqrt[3] - 2*x] - 4*ArcTan[x] - 2*ArcTan[Sqrt[3] + 2*x] + Sqrt[3]*Log[1 - Sqrt[3]*x + x^2] - Sqrt[3]*Log[1 + Sqrt[3]*x + x^2])/12
Time = 0.28 (sec) , antiderivative size = 85, normalized size of antiderivative = 1.05, number of steps used = 10, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.818, Rules used = {843, 753, 27, 216, 1142, 25, 1083, 217, 1103}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x^6}{x^6+1} \, dx\) |
\(\Big \downarrow \) 843 |
\(\displaystyle x-\int \frac {1}{x^6+1}dx\) |
\(\Big \downarrow \) 753 |
\(\displaystyle -\frac {1}{3} \int \frac {1}{x^2+1}dx-\frac {1}{3} \int \frac {2-\sqrt {3} x}{2 \left (x^2-\sqrt {3} x+1\right )}dx-\frac {1}{3} \int \frac {\sqrt {3} x+2}{2 \left (x^2+\sqrt {3} x+1\right )}dx+x\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {1}{3} \int \frac {1}{x^2+1}dx-\frac {1}{6} \int \frac {2-\sqrt {3} x}{x^2-\sqrt {3} x+1}dx-\frac {1}{6} \int \frac {\sqrt {3} x+2}{x^2+\sqrt {3} x+1}dx+x\) |
\(\Big \downarrow \) 216 |
\(\displaystyle -\frac {1}{6} \int \frac {2-\sqrt {3} x}{x^2-\sqrt {3} x+1}dx-\frac {1}{6} \int \frac {\sqrt {3} x+2}{x^2+\sqrt {3} x+1}dx-\frac {\arctan (x)}{3}+x\) |
\(\Big \downarrow \) 1142 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{2} \sqrt {3} \int -\frac {\sqrt {3}-2 x}{x^2-\sqrt {3} x+1}dx-\frac {1}{2} \int \frac {1}{x^2-\sqrt {3} x+1}dx\right )+\frac {1}{6} \left (-\frac {1}{2} \int \frac {1}{x^2+\sqrt {3} x+1}dx-\frac {1}{2} \sqrt {3} \int \frac {2 x+\sqrt {3}}{x^2+\sqrt {3} x+1}dx\right )-\frac {\arctan (x)}{3}+x\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {1}{6} \left (-\frac {1}{2} \int \frac {1}{x^2-\sqrt {3} x+1}dx-\frac {1}{2} \sqrt {3} \int \frac {\sqrt {3}-2 x}{x^2-\sqrt {3} x+1}dx\right )+\frac {1}{6} \left (-\frac {1}{2} \int \frac {1}{x^2+\sqrt {3} x+1}dx-\frac {1}{2} \sqrt {3} \int \frac {2 x+\sqrt {3}}{x^2+\sqrt {3} x+1}dx\right )-\frac {\arctan (x)}{3}+x\) |
\(\Big \downarrow \) 1083 |
\(\displaystyle \frac {1}{6} \left (\int \frac {1}{-\left (2 x-\sqrt {3}\right )^2-1}d\left (2 x-\sqrt {3}\right )-\frac {1}{2} \sqrt {3} \int \frac {\sqrt {3}-2 x}{x^2-\sqrt {3} x+1}dx\right )+\frac {1}{6} \left (\int \frac {1}{-\left (2 x+\sqrt {3}\right )^2-1}d\left (2 x+\sqrt {3}\right )-\frac {1}{2} \sqrt {3} \int \frac {2 x+\sqrt {3}}{x^2+\sqrt {3} x+1}dx\right )-\frac {\arctan (x)}{3}+x\) |
\(\Big \downarrow \) 217 |
\(\displaystyle \frac {1}{6} \left (\arctan \left (\sqrt {3}-2 x\right )-\frac {1}{2} \sqrt {3} \int \frac {\sqrt {3}-2 x}{x^2-\sqrt {3} x+1}dx\right )+\frac {1}{6} \left (-\frac {1}{2} \sqrt {3} \int \frac {2 x+\sqrt {3}}{x^2+\sqrt {3} x+1}dx-\arctan \left (2 x+\sqrt {3}\right )\right )-\frac {\arctan (x)}{3}+x\) |
\(\Big \downarrow \) 1103 |
\(\displaystyle \frac {1}{6} \left (\arctan \left (\sqrt {3}-2 x\right )+\frac {1}{2} \sqrt {3} \log \left (x^2-\sqrt {3} x+1\right )\right )+\frac {1}{6} \left (-\arctan \left (2 x+\sqrt {3}\right )-\frac {1}{2} \sqrt {3} \log \left (x^2+\sqrt {3} x+1\right )\right )-\frac {\arctan (x)}{3}+x\) |
x - ArcTan[x]/3 + (ArcTan[Sqrt[3] - 2*x] + (Sqrt[3]*Log[1 - Sqrt[3]*x + x^ 2])/2)/6 + (-ArcTan[Sqrt[3] + 2*x] - (Sqrt[3]*Log[1 + Sqrt[3]*x + x^2])/2) /6
3.14.63.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a , 0] || GtQ[b, 0])
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[-b, 2])^( -1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] & & (LtQ[a, 0] || LtQ[b, 0])
Int[((a_) + (b_.)*(x_)^(n_))^(-1), x_Symbol] :> Module[{r = Numerator[Rt[a/ b, n]], s = Denominator[Rt[a/b, n]], k, u, v}, Simp[u = Int[(r - s*Cos[(2*k - 1)*(Pi/n)]*x)/(r^2 - 2*r*s*Cos[(2*k - 1)*(Pi/n)]*x + s^2*x^2), x] + Int[ (r + s*Cos[(2*k - 1)*(Pi/n)]*x)/(r^2 + 2*r*s*Cos[(2*k - 1)*(Pi/n)]*x + s^2* x^2), x]; 2*(r^2/(a*n)) Int[1/(r^2 + s^2*x^2), x] + 2*(r/(a*n)) Sum[u, {k, 1, (n - 2)/4}], x]] /; FreeQ[{a, b}, x] && IGtQ[(n - 2)/4, 0] && PosQ[a /b]
Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[c^(n - 1)*(c*x)^(m - n + 1)*((a + b*x^n)^(p + 1)/(b*(m + n*p + 1))), x] - Simp[ a*c^n*((m - n + 1)/(b*(m + n*p + 1))) Int[(c*x)^(m - n)*(a + b*x^n)^p, x] , x] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0] && GtQ[m, n - 1] && NeQ[m + n* p + 1, 0] && IntBinomialQ[a, b, c, n, m, p, x]
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Simp[-2 Subst[I nt[1/Simp[b^2 - 4*a*c - x^2, x], x], x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x]
Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S imp[d*(Log[RemoveContent[a + b*x + c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]
Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S imp[(2*c*d - b*e)/(2*c) Int[1/(a + b*x + c*x^2), x], x] + Simp[e/(2*c) Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 4.45 (sec) , antiderivative size = 31, normalized size of antiderivative = 0.38
method | result | size |
risch | \(x -\frac {\arctan \left (x \right )}{3}+\frac {\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (\textit {\_Z}^{4}-\textit {\_Z}^{2}+1\right )}{\sum }\textit {\_R} \ln \left (x -\textit {\_R} \right )\right )}{6}\) | \(31\) |
default | \(x -\frac {\arctan \left (x \right )}{3}-\frac {\arctan \left (2 x -\sqrt {3}\right )}{6}-\frac {\arctan \left (2 x +\sqrt {3}\right )}{6}+\frac {\ln \left (1+x^{2}-\sqrt {3}\, x \right ) \sqrt {3}}{12}-\frac {\ln \left (1+x^{2}+\sqrt {3}\, x \right ) \sqrt {3}}{12}\) | \(62\) |
meijerg | \(x -\frac {x \left (-\frac {\sqrt {3}\, \ln \left (1-\sqrt {3}\, \left (x^{6}\right )^{\frac {1}{6}}+\left (x^{6}\right )^{\frac {1}{3}}\right )}{2 \left (x^{6}\right )^{\frac {1}{6}}}+\frac {\arctan \left (\frac {\left (x^{6}\right )^{\frac {1}{6}}}{2-\sqrt {3}\, \left (x^{6}\right )^{\frac {1}{6}}}\right )}{\left (x^{6}\right )^{\frac {1}{6}}}+\frac {2 \arctan \left (\left (x^{6}\right )^{\frac {1}{6}}\right )}{\left (x^{6}\right )^{\frac {1}{6}}}+\frac {\sqrt {3}\, \ln \left (1+\sqrt {3}\, \left (x^{6}\right )^{\frac {1}{6}}+\left (x^{6}\right )^{\frac {1}{3}}\right )}{2 \left (x^{6}\right )^{\frac {1}{6}}}+\frac {\arctan \left (\frac {\left (x^{6}\right )^{\frac {1}{6}}}{2+\sqrt {3}\, \left (x^{6}\right )^{\frac {1}{6}}}\right )}{\left (x^{6}\right )^{\frac {1}{6}}}\right )}{6}\) | \(131\) |
Result contains complex when optimal does not.
Time = 0.27 (sec) , antiderivative size = 136, normalized size of antiderivative = 1.68 \[ \int \frac {x^6}{1+x^6} \, dx=-\frac {1}{12} \, \sqrt {2} \sqrt {i \, \sqrt {3} + 1} \log \left (2 \, x + \sqrt {2} \sqrt {i \, \sqrt {3} + 1}\right ) + \frac {1}{12} \, \sqrt {2} \sqrt {i \, \sqrt {3} + 1} \log \left (2 \, x - \sqrt {2} \sqrt {i \, \sqrt {3} + 1}\right ) - \frac {1}{12} \, \sqrt {2} \sqrt {-i \, \sqrt {3} + 1} \log \left (2 \, x + \sqrt {2} \sqrt {-i \, \sqrt {3} + 1}\right ) + \frac {1}{12} \, \sqrt {2} \sqrt {-i \, \sqrt {3} + 1} \log \left (2 \, x - \sqrt {2} \sqrt {-i \, \sqrt {3} + 1}\right ) + x - \frac {1}{3} \, \arctan \left (x\right ) \]
-1/12*sqrt(2)*sqrt(I*sqrt(3) + 1)*log(2*x + sqrt(2)*sqrt(I*sqrt(3) + 1)) + 1/12*sqrt(2)*sqrt(I*sqrt(3) + 1)*log(2*x - sqrt(2)*sqrt(I*sqrt(3) + 1)) - 1/12*sqrt(2)*sqrt(-I*sqrt(3) + 1)*log(2*x + sqrt(2)*sqrt(-I*sqrt(3) + 1)) + 1/12*sqrt(2)*sqrt(-I*sqrt(3) + 1)*log(2*x - sqrt(2)*sqrt(-I*sqrt(3) + 1 )) + x - 1/3*arctan(x)
Time = 0.11 (sec) , antiderivative size = 70, normalized size of antiderivative = 0.86 \[ \int \frac {x^6}{1+x^6} \, dx=x + \frac {\sqrt {3} \log {\left (x^{2} - \sqrt {3} x + 1 \right )}}{12} - \frac {\sqrt {3} \log {\left (x^{2} + \sqrt {3} x + 1 \right )}}{12} - \frac {\operatorname {atan}{\left (x \right )}}{3} - \frac {\operatorname {atan}{\left (2 x - \sqrt {3} \right )}}{6} - \frac {\operatorname {atan}{\left (2 x + \sqrt {3} \right )}}{6} \]
x + sqrt(3)*log(x**2 - sqrt(3)*x + 1)/12 - sqrt(3)*log(x**2 + sqrt(3)*x + 1)/12 - atan(x)/3 - atan(2*x - sqrt(3))/6 - atan(2*x + sqrt(3))/6
Time = 0.29 (sec) , antiderivative size = 61, normalized size of antiderivative = 0.75 \[ \int \frac {x^6}{1+x^6} \, dx=-\frac {1}{12} \, \sqrt {3} \log \left (x^{2} + \sqrt {3} x + 1\right ) + \frac {1}{12} \, \sqrt {3} \log \left (x^{2} - \sqrt {3} x + 1\right ) + x - \frac {1}{6} \, \arctan \left (2 \, x + \sqrt {3}\right ) - \frac {1}{6} \, \arctan \left (2 \, x - \sqrt {3}\right ) - \frac {1}{3} \, \arctan \left (x\right ) \]
-1/12*sqrt(3)*log(x^2 + sqrt(3)*x + 1) + 1/12*sqrt(3)*log(x^2 - sqrt(3)*x + 1) + x - 1/6*arctan(2*x + sqrt(3)) - 1/6*arctan(2*x - sqrt(3)) - 1/3*arc tan(x)
Time = 0.28 (sec) , antiderivative size = 61, normalized size of antiderivative = 0.75 \[ \int \frac {x^6}{1+x^6} \, dx=-\frac {1}{12} \, \sqrt {3} \log \left (x^{2} + \sqrt {3} x + 1\right ) + \frac {1}{12} \, \sqrt {3} \log \left (x^{2} - \sqrt {3} x + 1\right ) + x - \frac {1}{6} \, \arctan \left (2 \, x + \sqrt {3}\right ) - \frac {1}{6} \, \arctan \left (2 \, x - \sqrt {3}\right ) - \frac {1}{3} \, \arctan \left (x\right ) \]
-1/12*sqrt(3)*log(x^2 + sqrt(3)*x + 1) + 1/12*sqrt(3)*log(x^2 - sqrt(3)*x + 1) + x - 1/6*arctan(2*x + sqrt(3)) - 1/6*arctan(2*x - sqrt(3)) - 1/3*arc tan(x)
Time = 0.11 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.09 \[ \int \frac {x^6}{1+x^6} \, dx=x-\frac {\mathrm {atan}\left (x\right )}{3}-\mathrm {atan}\left (\frac {x}{-1+\sqrt {3}\,1{}\mathrm {i}}+\frac {\sqrt {3}\,x\,1{}\mathrm {i}}{-1+\sqrt {3}\,1{}\mathrm {i}}\right )\,\left (\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right )-\mathrm {atan}\left (\frac {x}{1+\sqrt {3}\,1{}\mathrm {i}}-\frac {\sqrt {3}\,x\,1{}\mathrm {i}}{1+\sqrt {3}\,1{}\mathrm {i}}\right )\,\left (-\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right ) \]